package bean;

/**
 * Stock bean wich represents the stock for a specific warehouse
 * @author Martin Schophaus
 */
public class Stock {
	private Warehouse warehouse;
	private int stock_amount;
	public Stock(Warehouse warehouse, int stock_amount){
		this.setWarehouse(warehouse);
		this.setStock_amount(stock_amount);
	}
	public Warehouse getWarehouse() {
		return warehouse;
	}
	public void setWarehouse(Warehouse warehouse) {
		this.warehouse = warehouse;
	}
	public int getStock_amount() {
		return stock_amount;
	}
	public void setStock_amount(int stock_amount) {
		this.stock_amount = stock_amount;
	}
	public void addStock_amount(int stock_amount) {
		this.setStock_amount(this.getStock_amount() + stock_amount);
	}
}
